﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
 

namespace EntryExit
{
    public static class Common
    {
        public static string FormatDate(DateTime ParamDate)
        {
            string FomatedDate=string.Empty;
            //new TimeSpan(Convert.ToInt32(ConfigMgr.Instance.
            //            GetValue(ConfigKeys.CNFG_MIN_WORK_HOURS)), 0, 0);
            string format="{0:"+ConfigMgr.Instance.GetValue(ConfigKeys.CNFG_DATE_FORMAT)+"}";


            //format=format+ConfigMgr.Instance.GetValue(ConfigKeys.CNFG_DATE_FORMAT);
            FomatedDate = string.Format(format, ParamDate);
            return FomatedDate;
        }
    }
}